package banking;

public class Bank {
    private Customer[] customers= new Customer[10];
    private int numberOfCustomer;

    public Bank() {
        numberOfCustomer=0;
    }

    public void addCustomer(String f,String l) {
        customers[numberOfCustomer]=new Customer(f,l);
        numberOfCustomer++;
    }

    public int getNumOfCustomers(){
        return numberOfCustomer;
    }

    public Customer getCustomer(int index){
        return customers[index];
    }
}
